Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Lazy Infra Creation with online_store Option Set to True #144

Merged
merged 15 commits into from
Oct 22, 2024

Conversation

zabarn
Copy link

@zabarn zabarn commented Oct 14, 2024

What this PR does / why we need it:

This PR is includes the addition of lazy_table_creation to CassandraOnlineStoreConfig.

lazy_table_creation is used in feature_story.py's apply method to defer infra creation to the Materialization stage, found in this PR: #147.

Which issue(s) this PR fixes:

https://jira.expedia.biz/browse/EAPC-14919

Misc

@zabarn zabarn changed the title feat: test changes feat: Lazy Infra Creation with online_store Option Set to True Oct 15, 2024
@zabarn zabarn marked this pull request as ready for review October 15, 2024 19:42
sdk/python/feast/feature_store.py Outdated Show resolved Hide resolved
@@ -153,6 +153,12 @@ class CassandraOnlineStoreConfig(FeastConfigBaseModel):
request_timeout: Optional[StrictFloat] = None
"""Request timeout in seconds."""

ttl: Optional[StrictInt] = None
Copy link
Collaborator

@EXPEbdodla EXPEbdodla Oct 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can set this to 0. ttl is discouraged due to tombstones. If users need it, they can set which comes with extra load on the cluster.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will handle ttl in a separate PR.

@@ -88,7 +88,7 @@
event_ts TIMESTAMP,
created_ts TIMESTAMP,
PRIMARY KEY ((entity_key), feature_name)
) WITH CLUSTERING ORDER BY (feature_name ASC);
) WITH CLUSTERING ORDER BY (feature_name ASC) {optional_ttl_clause};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can change to WITH default_time_to_live = {ttl}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will handle ttl in a separate PR.

statement = template.format(
fqtable=fqtable,
**kwargs,
fqtable=fqtable, optional_ttl_clause=ttl_clause, **kwargs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just pass the ttl value directly.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will handle ttl in a separate PR.

Copy link
Collaborator

@EXPEbdodla EXPEbdodla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if feast plan need any changes.

Copy link
Collaborator

@EXPEbdodla EXPEbdodla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do squash merge

@zabarn zabarn merged commit 1326610 into master Oct 22, 2024
23 checks passed
@zabarn zabarn deleted the scylla-db-lazy-infra-creation-2 branch October 22, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants